#include "Not.hpp"

Not::Not ( Expression* op)
{
  _op=op;
}

Not::~Not ()
{
  delete _op;
}

void Not::compute ()
{
  LOGFUNCTION ( IEXEC_LOG );
  _op->compute();
  getValue()=_op->getValue();
  setBoolean(getValue(),!getBoolean(getValue()));
}

void Not::display ( const unsigned int shift) const
{
  std::cout << "!";
  _op->display();
}
